import com.meirengu.utils.DateUtils;
import com.meirengu.utils.MD5Util;

import java.util.Date;

public class test {


    public static void main(String[] args) throws Exception {
        String channelNo = "dp_channel_001";
        String mobile = "13120140358";
        String name = "张三";
        String applyTimeStr = "2018-06-20 18:03:21";
        String sign = MD5Util.MD5(channelNo + name + mobile + "UIO093b7osokGRJW" + applyTimeStr, "UTF-8");
        System.out.println(sign);


        String brithday = "1967-12-12";
        Date date = org.apache.commons.lang3.time.DateUtils.parseDate(brithday, "yyyy-MM-dd");
        System.out.println(date);
        System.out.println(DateUtils.strToDate(brithday, "yyyy-MM-dd"));
        int age = DateUtils.getAge(DateUtils.strToDate(brithday, "yyyy-MM-dd"));
        System.out.println(age);
        System.out.println(new Date(1529195770696l));
    }

}
